<?php
/**
 * 投票信息model
 */
class VoteModel extends BaseModel{
	
	protected $tableName = 'vote';


/**
	 * 通过条件获取多条数据
	 * @param array $condition
	 * @param string $field
	 * @param string $order
	 * @param string $group
	 * @param integer $limit
	 * @return array
	 */
	public function getList($condition, $field, $order , $group , $limit){
		if($condition){
			$result = $this->where($condition)->field($field)->order($order)->group($group)->limit($limit)->select();
		}
		return $result;
	}

}